package com.nxxskj.alcohol.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nxxskj.alcohol.bean.Record;
import com.nxxskj.alcohol.bean.User;
import com.nxxskj.alcohol.mapper.RecordMapper;
import com.nxxskj.alcohol.service.RecordService;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecordServiceImpl extends ServiceImpl<RecordMapper, Record> implements RecordService {
    @Autowired
    private RecordMapper recordMapper;
    @Override
    public List<Record> getdealListByUser(User user) {
        return recordMapper.getdealListByUser(user);
    }

    @Override
    public int getWaitDealRecordCount(User user) {
        return recordMapper.getWaitDealRecordCount(user);
    }
}
